package com.embedsky.administrator.mycardemulation.socket;

/**
 * @Des:
 * @Author: hang.zhao
 * @Date: 2023/2/26
 */
public interface IServerManager {
    /**
     * Send data.
     *
     * @param data the data
     * @param ip   the ip
     */
    void sendData(String data, String ip);

    /**
     * Broadcast data.
     *
     * @param data the data
     */
    void broadcastData(String data);

    /**
     * Close client by ip
     *
     * @param ip the ip
     */
    void closeClient(String ip);

    /**
     * Finish.
     */
    void finish();
}
